package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
  public void   addCaiPinWithFlavour(DishDTO dishDTO);

    PageResult pageFindDish(DishPageQueryDTO dishPageQueryDTO);

  void deleteBatch(List<Long> ids);

    DishVO getByIdWithFlavor(Long id);

  void updateDishWithFlavor(DishDTO dishDTO);

  List<Dish> list(Long categoryId);


  /**
   * 条件查询菜品和口味
   * @param dish
   * @return
   */
    List<DishVO> listWithFlavor(Dish dish);

  /**
   * 菜品起售停售
   *
   * @param status
   * @param id
   * @return
   */
    void startOrStop(Integer status, Long id);
}
